<%-- 
    Document   : listLocum
    Created on : 31 Oct, 2012, 6:08:41 PM
    Author     : sagar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../common/script.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/title.jsp" %>
    </head>
    <body>
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>
        <div class="in_02">
            <%@include file="../common/message.jsp" %>
            <br/> &nbsp;&nbsp;&nbsp;
            <sec:authorize ifAnyGranted="ROLE_BF_LOCUM_ADD">
            <span style="font-size: 15px; font-weight: bold;"><a href="../locum/addLocum.htm">Add Locum</a></span> 
            </sec:authorize>
            <br/><br/>
            <h1><spring:message code="title.locumList"/></h1>
            &nbsp;&nbsp;&nbsp;<c:out value="${fn:length(locumList)}"/> <spring:message code="rowsFound"/>
            <table  class="data_table" border="1px">
                <tr class="header">
                    <th width="150px"><spring:message code="locumName"/></th>
                    <th width="200px"><spring:message code="address"/></th>
                    <th width="80px"><spring:message code="contact1"/></th>
                    <th width="80px"><spring:message code="contact2"/></th>
                    <th width="100px"><spring:message code="locumType"/></th>
                    <th width="100px"><spring:message code="zone"/></th>
                    <th width="100px"><spring:message code="masterZoneCode"/></th>
                    <th width="100px"><spring:message code="timing"/></th>
                    <sec:authorize ifAnyGranted="ROLE_BF_LOCUM_EDIT">
                    <th>&nbsp;</th>
                    </sec:authorize>
                </tr>
                <c:forEach items="${locumList}" var="locumItem">
                    <tr>
                        <td align="center"><c:out value="${locumItem.locumName}"/></td>
                        <td align="center"><c:out value="${locumItem.address}"/></td>
                        <td align="center"><c:out value="${locumItem.contact1}"/></td>
                        <td align="center"><c:out value="${locumItem.contact2}"/></td>
                        <td align="center"><c:out value="${locumItem.locumType}"/></td>
                        <td align="center"><c:out value="${locumItem.zoneId.zoneName}"/></td>
                        <td align="center"><c:out value="${locumItem.zoneId.masterZoneId.masterZoneCode}"/></td>
                        <td align="center"><c:out value="${locumItem.timing}"/></td>
                        <sec:authorize ifAnyGranted="ROLE_BF_LOCUM_EDIT">
                            <td><a href="updateLocum.htm?locumId=<c:out value="${locumItem.locumId}"/>"><img src="../images/edit.png"  width="20" height="20" style="border: none" alt="Edit" title="Edit"/></a></td>
                                </sec:authorize>
                    </tr>
                </c:forEach>
            </table>
            &nbsp;&nbsp;&nbsp;<c:out value="${fn:length(locumList)}"/> <spring:message code="rowsFound"/><br/>
            <br/> &nbsp;&nbsp;&nbsp;
            <sec:authorize ifAnyGranted="ROLE_BF_LOCUM_ADD">
            <span style="font-size: 15px; font-weight: bold;"><a href="../locum/addLocum.htm">Add Locum</a></span><br/>
            </sec:authorize>
        </div>
    </body>
</html>
